package com.wcards.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("评论表")
@TableName("comment_info")
public class CommentInfo implements Serializable {
    @ApiModelProperty("动物编号")
    private Integer animalNumbers;
    @ApiModelProperty("用户ID")
    private Integer userId;
    @ApiModelProperty("评论时间")
    private LocalDateTime commentTime;
    @ApiModelProperty("评论内容")
    private String commentContent;
    @TableId(value = "comment_numbers",type = IdType.AUTO)
    @ApiModelProperty("评论编号")
    private Integer commentNumbers;
}
